import { reactive } from 'vue'
import { type News } from '@/types/new'

export default function useNew() {
  const newsList: News = reactive([
    { id: 1, title: '张三', content: '我是新闻1' },
    { id: 2, title: '李四', content: '我是新闻2' },
    { id: 3, title: '王五', content: '我是新闻3' }
  ])
  return {
    newsList
  }
}
